
package oa.base.jdbc;

import org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport;
import org.springframework.jdbc.core.simple.SimpleJdbcTemplate;

/**
 * 扩展SimpleJdbcDaoSupport,以支持Page查询
 * @author lilang
 */
public class BaseJdbcDao extends SimpleJdbcDaoSupport {
	public static final long MAX_ROW = 20000;
	private BaseJdbcTemplate baseJdbcTemplate;

	@Override
	protected void initTemplateConfig() {
		this.baseJdbcTemplate = new BaseJdbcTemplate(getJdbcTemplate());
	}

	public BaseJdbcTemplate getBaseJdbcTemplate() {
		return baseJdbcTemplate;
	}

	@Override
	public SimpleJdbcTemplate getSimpleJdbcTemplate() {
		return this.baseJdbcTemplate;
	}
	
	
	
	
	
	
	
}
